/* 
 * This program is free software; you can redistribute it and/or modify 
 * it under the terms of the GNU General Public License as published by 
 * the Free Software Foundation; either version 3 of the License, or 
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful, but 
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 
 * for more details.
 * 
 * You should have received a copy of the GNU General Public License along 
 * with this program; if not, write to the Free Software Foundation, Inc., 
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 */

#ifndef WISHMASTER_HANABIRAAGENT_H
#define WISHMASTER_HANABIRAAGENT_H

#include "chanagents/defaultagent.h"

namespace Wishmaster
{
	class HanabiraAgent : public DefaultAgent
	{
		Q_OBJECT
		Q_INTERFACES(Wishmaster::ChanAgent)
	public:
		HanabiraAgent(const QString& host = QString());
		virtual ~HanabiraAgent();

		virtual void makePost(const PostDescriptor& post, const QString& captcha);
		virtual void createThread(const PostDescriptor& post, const QString& captcha);

		virtual void requestThread(const ThreadId& threadId, const PostId& lastPostId);
		virtual void requestBoardIndex(const QString& boardId);

		virtual void deleteThread(const ThreadId& threadId, const QString& password);
		virtual void deletePost(const PostId& postId, const QString& password);
		virtual QStringList contentRatings();

		virtual ChanAgent* clone(const QString& host);
		virtual QString id();

	private slots:
		void resultPost(RequestPtr r, const QByteArray& data);

	private:
		QString m_host;
	};
}

#endif

